package cn.mw.cmdb.entity;

import cn.mw.cmdb.service.ServiceChoose;
import cn.mw.cmdb.service.impl.ModelMacOuiServiceImpl;
import cn.mw.components.mongodb.anno.AutoId;
import cn.mw.components.mongodb.anno.CMDBProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document("mw_mac_oui")
public class MwMacOuiInfo implements ServiceChoose {
    @CMDBProperty
    @AutoId
    @Schema(description = "id")
    protected String id;

    @CMDBProperty(searchType = PropertyTypeString.ID, keywordSearch = true)
    @Schema(description = "mac地址前六位")
    protected String mac;

    @CMDBProperty(searchType = PropertyTypeString.ID, keywordSearch = true)
    @Schema(description = "厂商全称")
    protected String vendor;

    @CMDBProperty(searchType = PropertyTypeString.ID, keywordSearch = true)
    @Schema(description = "厂商简称")
    protected String shortName;


    @CMDBProperty(searchType = PropertyTypeString.ID, keywordSearch = true)
    @Schema(description = "区域")
    protected String country;

    @CMDBProperty(searchType = PropertyTypeString.ID, keywordSearch = true)
    @Schema(description = "地址")
    protected String address;

    @Override
    @Schema(description = "模型服务Id")
    public String getServiceId() {
        return ModelMacOuiServiceImpl.ID;
    }
}
